package test04.file.appenders.common;

import org.apache.log4j.PropertyConfigurator;

import test04.file.appenders.admin.SampleAdmin;
import test04.file.appenders.boss.Boss;
import test04.file.appenders.report.SampleReport;

public class TestFileAppendersLogging {

	public static void main(String[] args) {
		SampleAdmin admin = new SampleAdmin();
		SampleReport report = new SampleReport();

		PropertyConfigurator.configure("C:/Documents and Settings/"
				+ "Bozhidar Bozhanov/Desktop/installs/eclipse2/workspace/"
				+ "test-logging/src/test04/file/appenders/resources/"
				+ "log4j.properties");

		admin.generateLogInfo();
		report.generateLogInfo();

		// Here we mix 3 loggers(admin, report, boss) and
		// 2 appenders(AdminAppender, ReportAppender).

		// Boss boss= new Boss();
		// boss.generateLogInfo();

	}
}
